﻿<phone:PhoneApplicationPage 
    x:Class="PhoneApp1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="我的应用程序" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="页面名称" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - 在此处放置其他内容-->
        <Canvas x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <!--<Line X1="0" Y1="0" X2="200" Y2="200" Stroke="#FFCB1E1E" ></Line>-->
        </Canvas>

        <Grid Grid.Row="2" x:Name="gridInfo">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="塔数量："/>
                <TextBlock x:Name="txt_TowerCount" Text="{Binding Path=TowerCount,Mode=OneWay}" Width="20"/>
                <TextBlock Text="子弹数量："/>
                <TextBlock x:Name="txt_ZdCount" Width="20" Text="{Binding Path=ZdCount,Mode=OneWay}"/>
                <TextBlock Text="怪数量："/>
                <TextBlock x:Name="txt_EnemyCount" Width="20" Text="{Binding Path=EnemyCount,Mode=OneWay}"/>
            </StackPanel>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>